<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class pulpstrength extends CI_Controller 
	{
			public function worklist()
			{
			echo  $this->pulpstrength_model->getWorklist();
			}
			public function newDataPulpStrength()
			{
			 	$inputData = array(
					"form_id"=>"5",
					"type_of"=>$this->input->post("pulpstrengthPS1"),
					"gram"=>$this->input->post("pulpstrengthPS2"),
					"pulp"=>$this->input->post("pulpstrengthPS3"),
					"brand"=>$this->input->post("pulpstrengthPS4"),
					"modify_user"=> '10001',
					"status"=> '1'
				);
			 	$text = "";
			 	$inputAllData=array();
			 	for($i=11;$i<=33;$i++){
				$data= array();
				$data = array(
			 	"data_name"=> "pulpstrengthPS".$i,
			 	"value_start"=> $this->input->post("pulpstrengthPS".$i."_1"),
			 	"value_end"=> $this->input->post("pulpstrengthPS".$i."_2")
			 	);
			 	$inputAllData[]=$data;
			 	}
				print_r ($inputAllData);
				echo $this->pulpstrength_model->checkPulpStrength($inputData,$inputAllData);

			}
	}
